<div style="display:none" id="loading" class="progress progress-striped active">
  <div class="bar" style="width: 99%;"></div>
</div>
<div class="tabbable tabs-below"> <!-- Only required for left/right tabs -->
  	<ul class="nav nav-pills tabsider" style="text-align: center;"> <!-- Tab Title -->
  		<li style="width: 25px;">&nbsp;</li>
	    <li class="active"><a href="#tab1" data-toggle="tab">Thư mời</a></li>
	    <li style="width: 20px;">&nbsp;</li>
	    <li class=""><a href="#tab2" data-toggle="tab">Bài mới</a></li>
<!--	    <li><a href="#tab3" data-toggle="tab">Trả lời</a></li>-->
  	</ul>
  	<?php $imageNew = CHtml::image(Util::themeUrl(). "/images/icon_new.gif");?>
	<div class="widget tab">
	  	<div class="tab-content"> <!-- Tab Content -->
	    	<div class="tab-pane active" id="tab1">
				<div class="sidercomment event">
					<ul>
					<?php if (isset($eventInvite) && !empty($eventInvite)) :?>
						<?php foreach ($eventInvite as $invite) :?>
						<li>
							<?php 
								echo CHtml::link(CHtml::encode(ucfirst(strtolower($invite->announcement->title))), array('site/view', 'id' => $invite->announcement->id));
								if (isset($invite->view_fg) && $invite->view_fg == 0) {
									echo $imageNew;
								}
							?>
						</li>
						<?php endforeach;?>
			      	<?php else :?>
						<li>Hiện không có thư mời.</li>
					<?php endif;?>
					</ul>
		  		 </div>
			</div>
		    <div class="tab-pane" id="tab2">
				<div class="sidercomment">
					<ul>
					<?php if (isset($announcement) && !empty($announcement)):?>
						<?php foreach ($announcement as $post):?>
							<li>
							<?php 
								echo CHtml::link(CHtml::encode(ucfirst(strtolower($post->announcement->title))), array('site/view', 'id' => $post->announcement->id));
								if (isset($post->view_fg) && $post->view_fg == 0) {
									echo $imageNew;
								}
							?>
						</li>
						<?php endforeach;?>
					<?php else :?>
						<li>Hiện chưa có bài mới.</li>
					<?php endif;?>
					</ul>
				</div>
		    </div>
			<div class="tab-pane" id="tab3">
				<div class="sidercomment">
					<ul>
					    <li><a href="http://www.cakephpviet.com/posts/view/46/moi-quan-he-giua-cac-model-trong-cakephp-framework.html#comments">Mối quan hệ giữa các Model trong CakePHP Framework</a>                @HT:         @nguyễn quốc cường: nếu nhiều mối quan hệ thì b... </li>
					    <li><a href="http://www.cakephpviet.com/posts/view/69/upload-file-su-dung-file-upload-plugin.html#comments">Upload file sử dụng File upload plugin</a>                @HT:         @ngocxit: tùy vào trường dữ liệu bạn muốn thêm ... </li>
					    <li><a href="http://www.cakephpviet.com/posts/view/14/auth-component-xac-thuc-nguoi-dung-trong-cakephp.html#comments">Auth Component - Xác thực người dùng trong CakePHP</a>                @HT:         @Ngocxit: auth trong cakephp 2.x khác so với bà... </li>
					    <li><a href="http://www.cakephpviet.com/posts/view/25/cakephp-uploader-plugin-upload-files-images-trong-cakephp.html#comments">CakePHP Uploader Plugin - Upload files/images trong CakePHP</a>                @HT:         @Nguyễn Cường: xen kẽ hình ảnh giữa bài viết th... </li>

					</ul>
				</div>
	 		 </div>
		</div>
	</div>
</div>